{layout name="layout/food" /}
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" enctype="multipart/form-data" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">同城配送设置</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">配送范围 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[delivery_range]"
                                               value="{$model['delivery_range']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">米</label>
									<div class="help-block am-u-sm-12">
                                        <small>最远配送范围</small>
                                    </div>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">免费范围 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[free_range]"
                                               value="{$model['free_range']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">米</label>
									<div class="help-block am-u-sm-12">
                                        <small>设置0为不使用</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">配送费用 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[delivery_price]"
                                               value="{$model['delivery_price']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">元</label>
                                    <div class="help-block am-u-sm-12">
                                        <small>设置0为不收取</small>
                                    </div>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">起送价格 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[min_price]"
                                               value="{$model['min_price']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">元</label>
									<div class="help-block am-u-sm-12">
                                        <small>不含配送费包装费等附加费用，设置0为不要求</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        $('#my-form').formPost();

    });
</script>
